package com.tai.design.decorator;

/**
 * The type Fast food.
 *
 * @version v1.0
 * @ClassName: FastFood
 * @Description: 快餐类(抽象构件角色)
 * @Author: taylor
 */
public abstract class FastFood {

    private float price;//价格
    private String desc; //描述

    /**
     * Gets price.
     *
     * @return the price
     */
    public float getPrice() {
        return price;
    }

    /**
     * Sets price.
     *
     * @param price the price
     */
    public void setPrice(float price) {
        this.price = price;
    }

    /**
     * Gets desc.
     *
     * @return the desc
     */
    public String getDesc() {
        return desc;
    }

    /**
     * Sets desc.
     *
     * @param desc the desc
     */
    public void setDesc(String desc) {
        this.desc = desc;
    }

    /**
     * Instantiates a new Fast food.
     *
     * @param price the price
     * @param desc  the desc
     */
    public FastFood(float price, String desc) {
        this.price = price;
        this.desc = desc;
    }

    /**
     * Instantiates a new Fast food.
     */
    public FastFood() {
    }

    /**
     * Cost float.
     *
     * @return the float
     */
    public abstract float cost();
}
